package com.youxin.busfoundation.common.es.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.youxin.foundation.utils.StringUtils;

/**
 * 联系人列表
 * @author yingde.cao
 *
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ContactBean {
	private String name;
	@JsonProperty("company_uid")
	private String companyUid;
	
	private String company;
	private String place;
	private String email;
	
	@JsonProperty("@version")
	private String version;
	
	@JsonProperty("@timestamp")
	
	private String timestamp;
	private String uid;
	private String type;
	private String wechat;
	private String mobile;
	private String qq;
	
	@JsonProperty("latest_time")
	private String latestTime;
//	private String resume;
//	private String education;
	private int sex;
	private String telephone;
	
	@JsonProperty("real_name")
	private String realName;
	
	private String title;
	private String position;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public String getTelephone() {
		return StringUtils.isNullSetEmpty(telephone);
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getName() {
		return StringUtils.isNullSetEmpty(name);
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCompanyUid() {
		return companyUid;
	}
	public void setCompanyUid(String companyUid) {
		this.companyUid = companyUid;
	}
	public String getCompany() {
		return StringUtils.isNullSetEmpty(company);
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getPlace() {
		return StringUtils.isNullSetEmpty(place);
	}
	public void setPlace(String place) {
		this.place = place;
	}
	public String getEmail() {
		return StringUtils.isNullSetEmpty(email);
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getVersion() {
		return StringUtils.isNullSetEmpty(version);
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getTimestamp() {
		return StringUtils.isNullSetEmpty(timestamp);
	}
	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	public String getUid() {
		return StringUtils.isNullSetEmpty(uid);
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public String getType() {
		return StringUtils.isNullSetEmpty(type);
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getWechat() {
		return StringUtils.isNullSetEmpty(wechat);
	}
	
	public void setWechat(String wechat) {
		this.wechat = wechat;
	}
	
	public String getMobile() {
		return StringUtils.isNullSetEmpty(mobile);
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getQq() {
		return StringUtils.isNullSetEmpty(qq);
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	
	@JsonIgnore
	public Date phoneTime;
	
//	public String getResume() {
//		return resume;
//	}
//	public void setResume(String resume) {
//		this.resume = resume;
//	}
//	public String getEducation() {
//		return education;
//	}
//	public void setEducation(String education) {
//		this.education = education;
//	}
	
	public Date getPhoneTime() {
		return phoneTime;
	}
	public void setPhoneTime(Date phoneTime) {
		this.phoneTime = phoneTime;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public String getLatestTime() {
		return StringUtils.isNullSetEmpty(latestTime);
	}
	public void setLatestTime(String latestTime) {
		this.latestTime = latestTime;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
}
